package com.ldatum.crm.dao;

import java.util.List;

import com.ldatum.crm.domain.TEmployee;

public interface TEmployeeDao {
	void add(TEmployee employee) throws Exception;
	void delete(TEmployee employee,int id) throws Exception;
	void update(TEmployee employee,int id) throws Exception;
	TEmployee findById(Class<TEmployee> clazz, int id) throws Exception;
	TEmployee findByLoginname(Class<TEmployee> clazz, String loginname) throws Exception;
	List<TEmployee> list(Class<TEmployee> clazz) throws Exception;
	void save(TEmployee employee) throws Exception;
	void deletes(String ids) throws Exception;
	void resetPasswd(String ids, String npwd) throws Exception;
	void changepwd(Integer id, String newpwd) throws Exception;
	String findPwdById(Integer id) throws Exception;
	
}
